package com.wy.tingshu.view_object;

import com.wy.tingshu.data_object.AlbumDO;
import lombok.Data;

/**
 * 要展示出去的专辑的内容
 **/
@Data
public class ListAlbumView {
    public Integer aid;
    public String title;
    public String cover;
    public String state;

    public ListAlbumView(AlbumDO albumDO) {
        this.aid = albumDO.aid;
        this.title = albumDO.title;
        this.cover = albumDO.cover;
        switch (albumDO.state){
            case 0: this.state="已下线";break;
            case 1:this.state="未发布";break;
            case 2:this.state="已发布";break;
            default:this.state="未知";break;
        }
    }
}
